﻿namespace EyeSoft.Wpf.Facilities
{
	using System;
	using System.Threading.Tasks;

	using EyeSoft.Mapping;

	internal class LoaderParams<TService>
		where TService : IDisposable
	{
		public LoaderParams(
			TaskFactory taskFactory,
			IMapper mapper,
			IDisposableFactory<TService> proxyFactory)
		{
			TaskFactory = taskFactory;
			Mapper = mapper;
			ProxyFactory = proxyFactory;
		}

		public TaskFactory TaskFactory { get; private set; }

		public IMapper Mapper { get; private set; }

		public IDisposableFactory<TService> ProxyFactory { get; private set; }
	}
}